2000W / 48V LLC Battery-Charger
V1.00
L1_Math_Funktionen.h
Go to the documentation of this file.
1
/**********************************************************/
20
/* Vermeidung rekursiver Einbindungen --------------------*/
21
#ifndef __L1_MATH_FUNC_H
22
#define __L1_MATH_FUNC_H
23
24
/* Einbindung externer Module (include) ---------*/
25
26
27
/**********************************************************/
28
/*** Globale Konstanten und Makros (define) ***/
29
/**********************************************************/
30
31
32
33
/**********************************************************/
34
/*** Globale Typen und Strukturen (typedef) ***/
35
/**********************************************************/
36
typedef
struct
{
37
SI_32
s32Speicher
;
/* Filterspeicher */
38
SI_16
s16DtT
;
/* Filterzeitkonstante */
39
}
ST_PT1_ELEMENT
;
40
41
typedef
struct
{
42
SI_16
s16Kp
;
/* Proportionalverstärkung */
43
SI_16
s16Ki
;
/* Integralverstärkung */
44
SI_16
s16Np
;
/* Proportional Verstärkungsfaktor 2^n */
45
SI_16
s16Ymax
;
/* Reglerausgangsbegrenzung Maximal */
46
SI_16
s16Ymin
;
/* Reglerausgangsbegrenzung Minimal */
47
}
ST_PI_PARAMETER
;
48
49
typedef
struct
{
50
SI_32
s32Integral
;
/* Integralspeicher */
51
SI_16
s16Sollwert
;
/* Sollwert */
52
SI_16
s16Istwert
;
/* Istwert */
53
SI_16
s16Error
;
/* Regelabweichung */
54
SI_16
s16Ausgang
;
/* Reglerausgang */
55
}
ST_PI_WERTE
;
56
57
/**********************************************************/
58
/*** Globale Variablen (Deklaration) (extern) ***/
59
/**********************************************************/
60
61
62
63
/**********************************************************/
64
/*** Globale Funktionsprototypen (extern) ***/
65
/**********************************************************/
66
/**********************************************************/
73
extern
SI_16
L1_PT1_Element
(
ST_PT1_ELEMENT
*pstPt1Feld,
SI_16
s16Input);
74
75
/**********************************************************/
86
extern
SI_16
L1_PI_Regler
(
ST_PI_WERTE
*pstPiWerte,
ST_PI_PARAMETER
stPiParameter);
87
88
89
#endif
/* __L1_MATH_FUNC_H */
90
ST_PI_PARAMETER::s16Kp
SI_16 s16Kp
Definition:
L1_Math_Funktionen.h:42
ST_PI_WERTE::s16Error
SI_16 s16Error
Definition:
L1_Math_Funktionen.h:53
ST_PT1_ELEMENT::s32Speicher
SI_32 s32Speicher
Definition:
L1_Math_Funktionen.h:37
ST_PI_WERTE::s16Sollwert
SI_16 s16Sollwert
Definition:
L1_Math_Funktionen.h:51
ST_PI_PARAMETER::s16Ymin
SI_16 s16Ymin
Definition:
L1_Math_Funktionen.h:46
ST_PI_WERTE
Definition:
L1_Math_Funktionen.h:49
ST_PI_PARAMETER::s16Np
SI_16 s16Np
Definition:
L1_Math_Funktionen.h:44
L1_PI_Regler
SI_16 L1_PI_Regler(ST_PI_WERTE *pstPiWerte, ST_PI_PARAMETER stPiParameter)
PI-Regler.
Definition:
L1_Math_Funktionen.c:96
ST_PI_PARAMETER
Definition:
L1_Math_Funktionen.h:41
ST_PI_WERTE::s32Integral
SI_32 s32Integral
Definition:
L1_Math_Funktionen.h:50
ST_PI_PARAMETER::s16Ki
SI_16 s16Ki
Definition:
L1_Math_Funktionen.h:43
ST_PI_WERTE::s16Ausgang
SI_16 s16Ausgang
Definition:
L1_Math_Funktionen.h:54
L1_PT1_Element
SI_16 L1_PT1_Element(ST_PT1_ELEMENT *pstPt1Feld, SI_16 s16Input)
Filter 1. Ordnung (PT1-Glied)
Definition:
L1_Math_Funktionen.c:71
ST_PT1_ELEMENT::s16DtT
SI_16 s16DtT
Definition:
L1_Math_Funktionen.h:38
SI_32
int32_t SI_32
Definition:
StandardTypes.h:39
ST_PI_PARAMETER::s16Ymax
SI_16 s16Ymax
Definition:
L1_Math_Funktionen.h:45
SI_16
int16_t SI_16
Definition:
StandardTypes.h:40
ST_PI_WERTE::s16Istwert
SI_16 s16Istwert
Definition:
L1_Math_Funktionen.h:52
ST_PT1_ELEMENT
Definition:
L1_Math_Funktionen.h:36
BattCharger_LLC_4850_V1_00
L1
inc
L1_Math_Funktionen.h
Generated by
1.8.14